﻿IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'proc_cm_DeleteDailyWord')
BEGIN
    PRINT 'Dropping Procedure proc_cm_DeleteDailyWord'
    DROP  Procedure  proc_cm_DeleteDailyWord
END
GO

PRINT 'Creating Procedure proc_cm_DeleteDailyWord'
GO

CREATE PROCEDURE [dbo].[proc_cm_DeleteDailyWord]
	@pDailyWordId uniqueidentifier
AS
BEGIN
	SET NOCOUNT ON

	DELETE FROM [dbo].[tbl_dailyword]
	WHERE [dailyword_id] = @pDailyWordId
END
GO

GRANT EXEC ON dbo.proc_cm_DeleteDailyWord TO PUBLIC
GO
